import request from '@/utils/request'

// 查询房间列表
export function listTbroom(query) {
  return request({
    url: '/apartment/tbroom/list',
    method: 'get',
    params: query
  })
}

// 查询房间详细
export function getTbroom(id) {
  return request({
    url: '/apartment/tbroom/' + id,
    method: 'get'
  })
}

// 新增房间
export function addTbroom(data) {
  return request({
    url: '/apartment/tbroom',
    method: 'post',
    data: data
  })
}

// 修改房间
export function updateTbroom(data) {
  return request({
    url: '/apartment/tbroom',
    method: 'put',
    data: data
  })
}

// 删除房间
export function delTbroom(id) {
  return request({
    url: '/apartment/tbroom/' + id,
    method: 'delete'
  })
}
